{template mobile_header}
<script>
    $(function(){
        $(".find").on("click",function(){
            var express_no = $("#express_no").val();
            if(express_no == ''){
                alert("清输入快递单号！");
            }else{
                location.href="{php echo $this->createMobileUrl('member')}&express_no="+express_no;
            }
        });
    });
</script>
<div class="container">

    <div class="row">
        <div class="col-xs-8">

            <input type="text" id="express_no" placeholder="快递单号查询" class="form-control" />
        </div>
        <div class="col-xs-4">
            <button class="btn btn-primary find">查找</button>
        </div>
    </div>

{if $order_goods }
{loop $order_goods $order}
<div style="padding: 0px 10px 0px 10px;">
    <div class="panel panel-info">
        <div class="panel-body">
            <table class="table">
                <tr>
                    <td colspan="2">下单时间：{$order['day']}</td>
                </tr>
                <tr>
                    <td>总件数：{$order['numbers']}件</td>
                    <td>总运费：￥{$order['freight_total']}</td>
                </tr>
                <tr>
                    <td>代付款：￥{$order['gen_pay']}</td>
                    <td colspan="2">总费用：￥{$order['total']}</td>
                </tr>
                <tr>
                    <td>已支付：￥{$order['had_pay']}</td>
                    <td>待支付：￥{$order['need_pay']}</td>
                </tr>
                <tr>
                    <td colspan="2">
                        货物
                        <div class="panel panel-warning">
                            <div class="panel-body">
                                <div class="row">
                                <div class="col-xs-3">商品</div>
                                <div class="col-xs-3">数量</div>
                                <div class="col-xs-3">运费</div>
                                <div class="col-xs-3">代付</div>
                                </div>
                                {loop $order['goods'] $goods}
                                <div class="row">
                                <div class="col-xs-3">{$goods['g_name']}</div>
                                <div class="col-xs-3">{$goods['numbers']}</div>
                                <div class="col-xs-3">￥{$goods['freight']}</div>
                                <div class="col-xs-3">￥{$goods['gen_pay']}</div>
                                </div>
                                {/loop}

                            </div>
                        </div>
                        <div align="right">
                            <a href="{php echo $this->createMobileUrl('member',array('op' => 'goods_detail','order_id' => $order['order_id']))}">
                                <button class="btn btn-primary">点击查看详细内容</button>
                            </a>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
{/loop}
{else}
    <div class="alert alert-warning">您暂时未有相关订单信息</div>
{/if}
<div align="ecnter">{$pager}</div>

</div>
</div>
{template 'footer'}